package com.scau.classOnline.entity;

import java.util.Date;

public class Comment {
    private Integer id;

    private Integer cid;

    private Integer sid;

    private String name;

    private String iconUrl;

    private String content;

    private Integer star;

    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIconUrl() {
        return iconUrl;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Integer getStar() {
        return star;
    }

    public void setStar(Integer star) {
        this.star = star;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", cid=" + cid +
                ", sid=" + sid +
                ", name='" + name + '\'' +
                ", iconUrl='" + iconUrl + '\'' +
                ", content='" + content + '\'' +
                ", star=" + star +
                ", createTime=" + createTime +
                '}';
    }
}